package com.example.disinfestation.service.Impl;

import com.example.disinfestation.entity.Pservices;
import com.example.disinfestation.mapper.PservicesMapper;
import com.example.disinfestation.service.PservicesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PservicesServiceImpl implements PservicesService {

    @Autowired
    PservicesMapper pservicesMapper;


    @Override
    public List<Pservices> selectAllPservices() {
        return pservicesMapper.selectAllPservices();
    }

    @Override
    public Pservices selectByPrimaryKey(Integer pid) {
        return pservicesMapper.selectByPrimaryKey(pid);
    }

    @Override
    public Pservices selectPservicesById(Integer id) {
        return pservicesMapper.selectPservicesById(id);
    }
}
